package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Question;
import cn.wolfcode.luowowo.article.query.QuestionQuery;
import cn.wolfcode.luowowo.article.vo.ArticleQuestionStatisVO;
import cn.wolfcode.luowowo.article.vo.StatisVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 区域服务
 */
public interface IQuestionService {

    /**
     * 分页查询
     * @param qo
     * @return
     */
    PageInfo query(QuestionQuery qo);

    /**
     * 添加与更新
     * @param question
     */
    Long saveOrUpdate(Question question);

    /**
     * 查询单个
     * @param rid
     * @return
     */
    Question get(Long rid);

    List<Question> list();

    void updateSatatisVO(ArticleQuestionStatisVO vo1);
}
